function request(options) {
  const baseUrl = 'http://192.168.11.175:8081'; // 设置前缀路径
  return new Promise((resolve, reject) => {
  wx.request({
  url: baseUrl + options.url, // 拼接前缀路径和传入的相对路径
  method: options.method || 'GET',
  data: options.data || {},
  header: options.header || {},
  success: (res) => {
  resolve(res.data);
  },
  fail: (err) => {
  reject(err);
  }
  });
  });
  }
  module.exports = {
  request
  }